package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.TechInstruction;
import com.zhijian.medical.entity.vo.request.TechInstructionSearchVo;
import com.zhijian.medical.entity.vo.response.TechInstructionVo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TechInstructionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TechInstruction record);

    int insertSelective(TechInstruction record);

    TechInstruction selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TechInstruction record);

    int updateByPrimaryKey(TechInstruction record);

    /**
     * 查询总数
     *
     * @param techInstructionSearchVo
     * @return
     */
    int count(TechInstructionSearchVo techInstructionSearchVo);

    /**
     * 查询列表
     *
     * @param techInstructionSearchVo
     * @return
     */
    List<TechInstructionVo> selectList(TechInstructionSearchVo techInstructionSearchVo);

    /**
     * 查询单个
     *
     * @param techInstructionSearchVo
     * @return
     */
    TechInstructionVo selectOne(TechInstructionSearchVo techInstructionSearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    TechInstructionVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param techInstructionSearchVo
     * @return
     */
    void deleteByCondition(TechInstructionSearchVo techInstructionSearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<TechInstruction> entities);

    /**
     * 根据DiagnoseId查询列表
     *
     * @param diagnoseId
     * @return
     */
    List<TechInstructionVo> selectListByDiagnoseId(Long diagnoseId);
}